﻿using System;

namespace Common.DataModels
{
    public class TokenModel
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public long UserId { get; }
        /// <summary>
        /// 用户姓名
        /// </summary>
        public string UserName { get; }
        /// <summary>
        /// 过期时间(s)
        /// </summary>
        public int Expiration { get; }
        /// <summary>
        /// 登陆时间
        /// </summary>
        public DateTime LoginTime { get;  }
        /// <summary>
        /// token
        /// </summary>
        public string Token { get;  }

        public TokenModel(long userId, string userName, int expiration, DateTime loginTime, string token)
        {
            UserId = userId;
            UserName = userName;
            Expiration = expiration;
            LoginTime = loginTime;
            Token = token;
        }
    }
}
